home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
science
/
sm32a.zip
/
LIBRARY
/
ATAN2.LI
< prev
next >
Wrap
Text File
|
1993-10-16
|
273b
|
10 lines
# atan2(x,y) gives the radian angle of (x,y).
# atan2(x,y) = sign(y) pi/2 if x=0
# = atan(y/x) if x>0
# = atan(y/x)+pi if x<0 and y>=0
# = atan(y/x)-pi if x<0 and y<0
# So its value is -pi < atan2(x,y) <= pi.
# See also: atan.
atan2(0,0) := undefined